package cc.autoapi.pucong.auto.flow.provider.aop.entity;

import cc.autoapi.pucong.auto.flow.persistence.po.aop.ProjectAopInfoPo;
import cc.autoapi.pucong.auto.flow.provider.aop.entity.dto.ProjectAopInfoInsertDto;
import cc.autoapi.pucong.auto.flow.provider.aop.entity.dto.ProjectAopInfoUpdateDto;
import cc.autoapi.pucong.auto.flow.provider.aop.entity.vo.ProjectAopInfoVo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author pucong
 * @url https://gitee.com/pucong
 * @create 2023-11-21
 */
@Mapper(componentModel = "spring")
public interface ProjectAopInfoBeanConvert {
    ProjectAopInfoBeanConvert INSTANCE = Mappers.getMapper(ProjectAopInfoBeanConvert.class);

    /**
     * dto转do
     *
     * @param projectAopInfoDto
     * @return
     */
    ProjectAopInfoPo dto2do(ProjectAopInfoUpdateDto projectAopInfoDto);

    /**
     * dto转do
     *
     * @param projectAopInfoDto
     * @return
     */
    ProjectAopInfoPo dto2do(ProjectAopInfoInsertDto projectAopInfoDto);


    /**
     * do转dto
     *
     * @param projectAopInfoPo
     * @return
     */
    ProjectAopInfoVo do2vo(ProjectAopInfoPo projectAopInfoPo);
}
